package com.jinke.api.modules.third.shippo.model.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

/**
 * 预估
 */
@Data
@Accessors(chain = true)
public class ShippoEstimateDTO {
    private Address address_to;
    private Address address_from;
    private EstimateCustomsDeclaration customs_declaration;
    private List<Parcels> parcels;
    private boolean async;
    private List<String> carrier_accounts;



    @Data
    public static class EstimateCustomsDeclaration {

        private String contents_type;
        private String contents_explanation;
        private String non_delivery_option;
        private Boolean certify;
        private String certify_signer;
        private customsItem items;
    }
    @Data
    public static class customsItem {

        private String description;
        private BigDecimal quantity;
        private String net_weight;


        private String mass_unit;
        private String value_amount;
        private String value_currency="USD";
        private String origin_country;
    }

    @Data
    public static class Address {

        private String name;
        private String street1;
        private String city;
        private String state;
        private String zip;
        private String country;
        private String phone;
        private String email;
    }



    @Data
    public static class Parcels {

        private String length;
        private String width;
        private String height;
        private String distance_unit;
        private String weight;
        private String mass_unit;
    }


}
